package com.qtcm.nas.jhx.dianpu.web;

import com.qtcm.nas.jhx.dianpu.service.IDianpuservice;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;
import java.util.List;

@Controller("dianpuController")
public class DianpuController {
    @Resource(name = "dianpuservice")
    private IDianpuservice dianpuservice;
    private String dianpu(Model model, HttpSession session){
        List list=dianpuservice.dianpu();
        String dianming= (String) list.get(0);
        String dianming1= (String) list.get(1);
        model.addAttribute("dianming",dianming);
        model.addAttribute("dianming1",dianming1);
        return "today_storedata";
    }
}
